xend: fix a typo in pciif so PciController.unwatchAerState() works
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 9 Apr 2009 07:45:32 +0000 (08:45 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 9 Apr 2009 07:45:32 +0000 (08:45 +0100)
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
tools/python/xen/xend/server/pciif.py

index 730274c31b8843792622765f7242766125308c75..157926245992c665115c95081e8a352f8a235949 100644 (file)
@@ -454,7 +454,7 @@ class PciController(DevController):
         for (domain, bus, slot, func) in pci_dev_list:
             self.setupOneDevice(domain, bus, slot, func)
         wPath = '/local/domain/0/backend/pci/%u/0/aerState' % (self.getDomid())
-        self.aerStatePath = xswatch(wPath, self._handleAerStateWatch)
+        self.aerStateWatch = xswatch(wPath, self._handleAerStateWatch)
         log.debug('pci: register aer watch %s', wPath)
         return
 
@@ -590,7 +590,7 @@ class PciController(DevController):
     def destroyDevice(self, devid, force):
         DevController.destroyDevice(self, devid, True)
         log.debug('pci: unregister aer watch')
-        self.unwatchAerState
+        self.unwatchAerState()
 
     def unwatchAerState(self):
         """Remove the watch on the domain's aerState node, if any."""